﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Dynamic.Core;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using WMS.ProductcategoryTable.DTO;

namespace WMS.ProductcategoryTable
{
    public interface IProductcategoryAppService:IApplicationService
    {
        /// <summary>
        /// 商品分类显示
        /// </summary>
        /// <param name="page"></param>
        /// <param name="limit"></param>
        /// <returns></returns>
        Task<PagedResult> GetProductcateInfo(int page, int limit, string? productname);
        /// <summary>
        /// 商品分类添加
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<int> CreateProducate(CreateProductcategoryDTO dto);
        /// <summary>
        /// 商品分类删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteProducate(int id);
        /// <summary>
        /// 根据商品分类的ID获取数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<GetProductcategoryDTO> FanTianProducategoryInfo(int id);
        /// <summary>
        /// 商品分类修改
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<int> UpdateProducate(UpdateProductcategoryDTO dto);
    }
}
